{include file="header" title="官方安装程序" keywords="" description=""/}
<div class="step-bar">
    <div class="am-container">
        <div class="am-g setp-title">
            <div class="am-u-sm-6 am-text-right">
                <h1>Step.1</h1>
            </div>
            <div class="am-u-sm-6 am-text-left">
                <h3>开始安装</h3>
                <p>检测服务器环境及文件目录权限</p>
            </div>
        </div>
        <div class="am-g step">
            <div class="am-u-sm-3 am-active">
                <i class="am-icon am-icon-search"></i>
                <div class="line"></div>
                <spa>检查安装环境</spa>
            </div>
            <div class="am-u-sm-3">
                <i class="am-icon am-icon-cogs"></i>
                <div class="line"></div>
                <span>选择安装方式</span>
            </div>
            <div class="am-u-sm-3">
                <i class="am-icon am-icon-database"></i>
                <div class="line"></div>
                <span>创建数据库</span>
            </div>
            <div class="am-u-sm-3">
                <i class="am-icon am-icon-bullseye"></i>
                <div class="line"></div>
                <span>安装</span>
            </div>
        </div>
    </div>
</div>
<div class="check-table">
    <div class="am-container">
        <h2>环境检查</h2>
        <table class="am-table am-table-striped">
            <tr>
                <th>项目</th>
                <th>最低配置</th>
                <th>最佳配置</th>
                <th>当前配置</th>
            </tr>

            {volist name="list.env" id="vo"}
            <tr>
                <td>{$vo->name}</td>
                <td>{$vo->min}</td>
                <td>{$vo->good}</td>
                <td>
                    {if condition="$vo->comparison eq 1"}
                    <i class="am-icon am-icon-check-circle am-text-primary"></i>
                    {else /}
                    <i class="am-icon am-icon-minus-circle am-text-danger"></i>
                    {/if}
                    {$vo->current}
                </td>
            </tr>
            {/volist}

        </table>
        <h2>目录、文件权限检查</h2>
        <table class="am-table am-table-striped">
            <tr>
                <th>目录文件</th>
                <th>所需状态</th>
                <th>当前状态</th>
            </tr>
            {volist name="list.file" id="vo"}
            <tr>
                <td>{$vo->path}</td>
                <td>{$vo->require}</td>
                <td>
                    {if condition="$vo->comparison"}
                    <i class="am-icon am-icon-check-circle am-text-primary"></i>可写
                    {else /}
                    <i class="am-icon am-icon-minus-circle am-text-danger"></i>不可写
                    {/if}
                </td>
            </tr>
            {/volist}
        </table>
        <h2>函数检查</h2>
        <table class="am-table am-table-striped">
            <tr>
                <th>函数名称</th>
                <th>所需状态</th>
                <th>当前状态</th>
            </tr>
            {volist name="list.fun" id="vo"}
            <tr>
                <td>{$vo->name}</td>
                <td>{$vo->require}</td>
                <td>
                    {if condition="$vo->comparison"}
                    <i class="am-icon am-icon-check-circle am-text-primary"></i>支持
                    {else /}
                    <i class="am-icon am-icon-minus-circle am-text-danger"></i>不支持
                    {/if}
                </td>
            </tr>
            {/volist}
        </table>
        <p class="am-text-center am-margin-top-xl">
            <a href="<?= url('/install');?>" class="am-btn am-btn-primary am-radius">上一步</a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="<?= url('/install/step2');?>" class="am-btn am-btn-primary am-radius" {if
               condition="$flag == false" }disabled{/if}>下一步</a>
        </p>
    </div>
</div>
{include file="footer" /}
